//
//  UIImageView+Middleware.h
//  kunlun
//
//  Created by zhusanbao on 2020/9/24.
//  Copyright © 2020 zhusanbao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SDWebImageManager.h"

@interface UIImageView (Middleware)

@property (copy, nonatomic) NSString * _Nullable kl_imageName;

@property (copy, nonatomic) NSString * _Nullable kl_imageUrl;

@property (copy, nonatomic) void (^ _Nullable kl_imageUrlBlock)(NSString * _Nullable url, UIImage * _Nullable placeholder);

@property (copy, nonatomic) void (^ _Nullable kl_imageUrlOptionBlock)(NSString * _Nullable url, UIImage * _Nullable placeholder, SDWebImageOptions options);

@property (copy, nonatomic) void (^ _Nullable kl_imageUrlCompleteBlock)(NSString * _Nullable url, UIImage * _Nullable placeholder, SDExternalCompletionBlock _Nullable complete);

@property (copy, nonatomic) void (^ _Nullable kl_imageUrlDefaultBlock)(NSString * _Nullable url, UIImage * _Nullable placeholder, UIImage * _Nullable defaultImg);

@property (copy, nonatomic) void (^ _Nullable kl_imageUrlDefaultCompleteBlock)(NSString * _Nullable url, UIImage * _Nullable placeholder, UIImage * _Nullable defaultImg, SDExternalCompletionBlock _Nullable complete);

- (void)kl_nocacheImageUrl:(NSString *)url;

@end

